package com.car.main;

import java.sql.Connection;
import java.util.List;

<<<<<<< HEAD
import com.bbs.crawl.CarForumCrawlOfAutoHome;
import com.bbs.dao.ColorDaoOfHome;
=======
import com.bbs.crawl.CarForumCrawl;
import com.bbs.dao.ColorDao;
>>>>>>> 12cebf820d4efd66d730623df0b55f6b98421d88
import com.car.dao.AutoHomeCarID;
import com.car.util.ConnectionPool;

public class ColorMain {
	public static void main(String[] args) {
		Connection conn= ConnectionPool.getConnection("carvoice_core", "root", "zhouzhou100428", "192.168.1.168");
		AutoHomeCarID autoKBCarIDDao = new AutoHomeCarID();
		List<Integer> carIDs = autoKBCarIDDao.getBrandCarIDs();
<<<<<<< HEAD
		CarForumCrawlOfAutoHome cfc=new CarForumCrawlOfAutoHome(new ColorDaoOfHome(conn)); 
=======
		CarForumCrawl cfc=new CarForumCrawl(new ColorDao(conn)); 
>>>>>>> 12cebf820d4efd66d730623df0b55f6b98421d88
		for(Integer cid:carIDs){
			cfc.getColorForum(cid);
		}
	}
}
